//保存全局数据 --- 用户信息
export const state = ()=>({
    //声明全局变量的地方
    userInfo: {
            token: '',
            user: {}
    }
})

export const mutations ={
    SET_UserInfo(state, data){
        state.userInfo = data
    }

}